package com.ruoyi.app.service;

import com.ruoyi.app.domain.AppArticleMine;
import com.ruoyi.app.mapper.AppArticleMineMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class AppArticleMineService {

    @Autowired
    private AppArticleMineMapper appArticleMineMapper;

    @Transactional
    public int insertArticleMine(AppArticleMine articleMine){
        return appArticleMineMapper.insertArticleMine(articleMine);
    }
    @Transactional
    public int delArticleMine(long id){
        return appArticleMineMapper.delArticleMine(id);
    }
    public AppArticleMine queryArticleMine(AppArticleMine appArticleMine){
        return appArticleMineMapper.queryArticleMine(appArticleMine);
    }
    @Transactional
    public int upArticleMine(long id){
        return appArticleMineMapper.upArticleMine(id);
    }

    public List<AppArticleMine> queryArticleMineList(AppArticleMine appArticleMine){
        return  appArticleMineMapper.queryArticleMineList(appArticleMine);
    }
}
